<?php
defined('_JEXEC') or die;

jimport('joomla.application.component.view');

class WebideViewFiles extends JView {

	public function display($template = null) {
		
		$option = $this->getModel('option');
		$items = $option->getItems();
		dump($items, 'ITEMS');
		//$this->document->addScript(JURI::root(true) . '/administrator/components/com_jce/media/js/uploads.js?version=' . $model->getVersion());		
		//$this->document->addScriptDeclaration('jQuery(document).ready(function($){$(":file").upload(' . json_encode($options) . ')});');
		//$this->setLayout('default');
		// call method from model->getFiles
		$fileList = $this->get('Files');
		
		$this->assignRef('files', $fileList);
		
		$this->info = "data from view";
		
		$this->path = JRequest::getString('path','components');
		
		parent::display($template);
	}
}
